﻿using DotNetNuke.Entities.Portals;

namespace HeroldIT.Dnn.Modules.Compatibility.Dnn5
{
    public class PortalSettings : Compatibility.PortalSettings
    {
        private DotNetNuke.Entities.Portals.PortalSettings settings;

        private DotNetNuke.Entities.Portals.PortalSettings Settings
        {
            get
            {
                if (null == this.settings)
                {
                    this.settings = PortalController.GetCurrentPortalSettings();
                }
                return this.settings;
            }
        }

        #region Overrides of PortalSettings

        /// <summary>
        /// Gets the path the the default admin skin.
        /// </summary>
        public override string DefaultAdminSkin
        {
            get { return this.Settings.DefaultAdminSkin; }
        }

        /// <summary>
        /// Gets the path the the default admin container.
        /// </summary>
        public override string DefaultAdminContainer
        {
            get { return this.Settings.DefaultAdminContainer; }
        }

        /// <summary>
        /// Gets the path the the default portal skin.
        /// </summary>
        public override string DefaultPortalSkin
        {
            get { return this.Settings.DefaultPortalSkin; }
        }

        /// <summary>
        /// Gets the path the the default portal container.
        /// </summary>
        public override string DefaultPortalContainer
        {
            get { return this.Settings.DefaultPortalContainer; }
        }

        #endregion
    }
}
